﻿
namespace SanguoSharp.Server.Cards
{
    public sealed class 八卦阵 : TableCard
    {
        public 八卦阵(Game game, int id, CardSuit suit, CardRank rank)
            : base(game, id, CardType.八卦阵, suit, rank)
        {
        }

        public override void CheckMissed(CardResultMethod resultMethod)
        {
            if (Owner == null)
                throw new BadCardException();
            AssertOnTable();

            Owner.CheckDeck(this, c => ((c.Suit == CardSuit.红桃)||(c.Suit==CardSuit.方片)), resultMethod);
        }
    }
}